import request from '@/utils/request'
import qs from 'qs'

// 所有用户列表
export function getUsersList(params) {
  return request({
    url: '/system/findList',
    method: 'post',
    params
  })
}

// 用户编辑
export function editUser(data) {
  const postData = qs.stringify(data)
  return request({
    url: '/system/update',
    method: 'post',
    data: postData
  })
}

// 用户解绑
export function unbindUser(params) {
  return request({
    url: '/system/unbundling',
    method: 'post',
    params
  })
}
